package Before826.guesspanch;

import java.util.Random;

public class computer extends Player{
    @Override
    public int outpanch(){
        Random rand = new Random();
        int num =rand.nextInt(3);
        String end = "";
        switch(num){
            case 0:end = "剪刀";
                break;
            case 1:end = "石头";
                break;
            case 2: end ="布";
                break;
        }
        System.out.println( super.getName() +  "出拳:" + end);
        return num;
    }
}
